package bo.zhao.action.strategy.config_decoupled;

 

/**
 * @author Bo.Zhao
 * @since 19/5/17
 */
public class Service {

    public static void main(String[] args) {
    	
    	
    	//创建配置对象并设置
    	DBTreaty dbTreaty = new DBTreaty();
    	dbTreaty.setDeletedField("deleted");
    	
    	//创建DAO对象
    	DAO dao=new DAO();
    	//指定配置对象
    	dao.setDBTreaty(dbTreaty);
    	//执行语句
    	dao.delete("user", 99);
    	
    }
}
